package com.foreknow.elm.dao;

import com.foreknow.elm.po.Orderdetailet;

import java.sql.SQLException;
import java.util.List;

public interface OrderdetailetDao {

    /**
     * 根据用户编号、商家编号从购物车表中查询所有数据，批量添加到订单明细表中，
     * @param list
     * @return
     */
    public int saveOrderdetailet(List<Orderdetailet> list) throws SQLException;


    /**
     * 根据 orderId 查
     * @param orderId
     * @return
     * @throws SQLException
     */
    public List<Orderdetailet> listOrderdetailet(Integer orderId) throws SQLException;


}
